// 需要权限访问的完整路由表
// 获取权限后和该表匹配的则被加入到正式路由中。该表必须完整的包含工程页面
// path 页面跳转地址
// permission字段内容从后台获取，代表该页内部详细权限，以key:value形式存储

const asyncRouter = [
  {
    path: '/asyncRouter',
    component: () => import('../views/layout/layout.vue'),
    children: []
  },
  { // 门店 --- 门店管理
    path: '/custStore/index',
    component: () => import('../views/custStore/index.vue'),
    meta: {
      permission: []
    }
  },
  { // 商品 --- 商品管理
    path: '/goods/index',
    component: () => import('../views/goods/index.vue'),
    meta: {
      permission: []
    }
  },
  { // 商品 --- 添加商品
    path: '/goods/addGoods',
    component: () => import('../views/goods/addGoods.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 盘点计划 --- 盘点列表
    path: '/stock/checkPlan',
    component: () => import('../views/stock/checkStock/index.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 盘点计划 --- 填写报告
    path: '/stock/editReport',
    component: () => import('../views/stock/checkStock/editReport.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 盘点计划 --- 查看报告
    path: '/stock/viewReport',
    component: () => import('../views/stock/checkStock/viewReport.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 库存管理
    path: '/stock/goodsStock',
    component: () => import('../views/stock/goodsStock/index.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 库存管理 --- 详情
    path: '/stock/stockDetail',
    component: () => import('../views/stock/goodsStock/stockDetail.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 商品入库
    path: '/stock/importStock',
    component: () => import('../views/stock/importStock/index.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 商品入库 --- 详情
    path: '/stock/importDetail',
    component: () => import('../views/stock/importStock/importDetail.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 商品入库 --- 添加
    path: '/stock/addImportInfo',
    component: () => import('../views/stock/importStock/addImportInfo.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 商品出库
    path: '/stock/exportStock',
    component: () => import('../views/stock/exportStock/index.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 商品出库 --- 详情
    path: '/stock/exportDetail',
    component: () => import('../views/stock/exportStock/exportDetail.vue'),
    meta: {
      permission: []
    }
  },
  { // 库存 --- 商品出库 --- 添加
    path: '/stock/addExportInfo',
    component: () => import('../views/stock/exportStock/addExportInfo.vue'),
    meta: {
      permission: []
    }
  }
]

export default asyncRouter
